<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详细</title>
</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>{{Model.title}}</h5>
		</div>
		<div class="modal-body">

			<form class="form-horizontal" name="invoice_receiveOtherType_single_form">
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">收支类型</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" readonly="readonly" name="revOpayLabel"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].revOpayLabel.value"
							placeholder="">
					</div>
				</div>
				<div class="form-group form-group-sm has-feedback" data-ng-class="{false:' has-success',true:' has-error'}[invoice_receiveOtherType_single_form.sType.$invalid==true]">
					<label class="col-sm-3 control-label">收入类型</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" required ng-maxlength=100 name="sType"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].sType.value"
							placeholder="最大长度1个字符，且不能为空！">
						<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="invoice_receiveOtherType_single_form.sType.$valid"></span>
						<span class="glyphicon glyphicon-remove form-control-feedback" ng-show="false"></span>
						<span ng-show="invoice_receiveOtherType_single_form.sType.$dirty && invoice_receiveOtherType_single_form.sType.$invalid">
							<!-- $dirty:用户输入前为false，之后为true，意思就是用户有了动作。 -->
							<small ng-show="invoice_receiveOtherType_single_form.sType.$error.required">此项为必填项</small>
							<small ng-show="invoice_receiveOtherType_single_form.sType.$error.minlength">至少输入2个字符</small>
							<small ng-show="invoice_receiveOtherType_single_form.sType.$error.maxlength">您输入的字符数不能超过32</small>
						</span>
					</div>
				</div>
				<div class="form-group form-group-sm has-feedback" data-ng-class="{false:' has-success',true:' has-error'}[invoice_receiveOtherType_single_form.sDescribe.$invalid==true]">
					<label class="col-sm-3 control-label">收入项目</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" ng-maxlength=255 name="sDescribe"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].sDescribe.value" 
							placeholder="最大长度50个字符！">
						<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="invoice_receiveOtherType_single_form.sDescribe.$valid"></span>
						<span class="glyphicon glyphicon-remove form-control-feedback" ng-show="false"></span>
						<span ng-show="invoice_receiveOtherType_single_form.sDescribe.$dirty && invoice_receiveOtherType_single_form.sDescribe.$invalid">
							<!-- $dirty:用户输入前为false，之后为true，意思就是用户有了动作。 -->
							<small ng-show="invoice_receiveOtherType_single_form.sDescribe.$error.maxlength">您输入的字符数不能超过50</small>
						</span>
					</div>
					
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">会计科目</label>
					<div class="col-sm-9">
						<div class="input-group">
							<input type="text" class="form-control" data-ng-readonly="true" value="{{Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalFullName.value}}"/>
							<span class="input-group-btn">
								<button class="btn btn-default btn-sm" data-ng-disabled="Model.dataMaster.readonly();" data-ng-click="Model.triggerCapitalNoButtonClick()">
									<span class="glyphicon " data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalID.value==null || Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalID.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalID.value==null || Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalID.value=='')}"
										aria-hidden="true"></span>
								</button>
							</span>
						</div>
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-3 control-label">科目编码</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" readonly="readonly" name="capitalNo"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.currentIndex].capitalNo.value"
							placeholder="">
					</div>
				</div>


			</form>
			<pre ng-if="false">
			[sType.$dirty]:{{invoice_receiveOtherType_single_form.sType.$dirty}}
			[sType.$valid]:{{invoice_receiveOtherType_single_form.sType.$valid}}
			[sType.$error]:{{invoice_receiveOtherType_single_form.sType.$error}}
			[sDescribe.$dirty]:{{invoice_receiveOtherType_single_form.sDescribe.$dirty}}
			[sDescribe.$valid]:{{invoice_receiveOtherType_single_form.sDescribe.$valid}}
			[sDescribe.$error]:{{invoice_receiveOtherType_single_form.sDescribe.$error}}
			</pre>
			

		</div>
		<div class="modal-footer">
			<button class="btn btn-primary"
				ng-disabled="invoice_receiveOtherType_single_form.sType.$invalid || invoice_receiveOtherType_single_form.sDescribe.$invalid || invoice_receiveOtherType_single_form.sortNo.$invalid" 
				data-ng-click="Model.ok()">确定</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">取消</button>
		</div>

	</div>




</body>
</html>